home *** CD-ROM | disk | FTP | other *** search
- # File B.otcl
-
- otclInterface B -isA A {
- constructor {next value}
- method doIt {}
- }
-
- otclImplementation B {
- constructor {n v} {{A $n}} {
- set value $v
- puts "B::constructed with value $value"
- }
- destructor {
- puts "B::destructed"
- }
- method doIt {} {
- puts "B::doIt, value is $value, calling A::doIt"
- $this -A doIt
- }
- attribute value
- }
-